package com.qiyi.cupid.adplayer.view
{
   import flash.display.Stage;
   import flash.display.StageDisplayState;
   import flash.display.DisplayObjectContainer;
   
   public class DisplayProperties extends Object
   {
      
      public function DisplayProperties(param1:DisplayObjectContainer, param2:Number, param3:Number, param4:Number = 0, param5:Number = 0) {
         super();
         this._displayObjectContainer = param1;
         this._displayWidth = param2;
         this._displayHeight = param3;
         this._originalWidth = param4;
         this._originalHeight = param5;
      }
      
      public static function isFullScreen(param1:Stage) : Boolean {
         return (param1) && param1.displayState == StageDisplayState.FULL_SCREEN?true:false;
      }
      
      private var _displayObjectContainer:DisplayObjectContainer;
      
      private var _displayWidth:Number = 0;
      
      private var _displayHeight:Number = 0;
      
      private var _originalWidth:Number = 0;
      
      private var _originalHeight:Number = 0;
      
      public function get displayWidth() : Number {
         return this._displayWidth;
      }
      
      public function set displayWidth(param1:Number) : void {
         this._displayWidth = param1;
      }
      
      public function get displayHeight() : Number {
         return this._displayHeight;
      }
      
      public function set displayHeight(param1:Number) : void {
         this._displayHeight = param1;
      }
      
      public function get originalHeight() : Number {
         return this._originalHeight;
      }
      
      public function set originalHeight(param1:Number) : void {
         this._originalHeight = param1;
      }
      
      public function get originalWidth() : Number {
         return this._originalWidth;
      }
      
      public function set originalWidth(param1:Number) : void {
         this._originalWidth = param1;
      }
      
      public function get scaleX() : Number {
         return this.displayWidth / this.originalWidth;
      }
      
      public function get scaleY() : Number {
         return this.displayHeight / this.originalHeight;
      }
      
      public function get displayObjectContainer() : DisplayObjectContainer {
         return this._displayObjectContainer;
      }
      
      public function set displayObjectContainer(param1:DisplayObjectContainer) : void {
         this._displayObjectContainer = param1;
      }
      
      public function toString() : String {
         return "(originalWidth: " + this._originalWidth + ", originalHeight: " + this._originalHeight + ", displayWidth: " + this._displayWidth + ", displayHeight: " + this._displayHeight + ")";
      }
      
      public function destroy() : void {
         if(this._displayObjectContainer)
         {
            this._displayObjectContainer = null;
         }
      }
   }
}
